import request from '@/config/axios'

// EISC系统接口 VO
export interface ApiEiscVO {
  id: number // 主键
  serialNumber: string // 序号
  apiName: string // 调用接口名称
  callTime: Date // 调用时间
  returnResult: string // 返回结果
  remark: string // 备注
}

// EISC系统接口 API
export const ApiEiscApi = {
  // 查询EISC系统接口分页
  getApiEiscPage: async (params: any) => {
    return await request.get({ url: `/base/api-eisc/page`, params })
  },

  // 查询EISC系统接口详情
  getApiEisc: async (id: number) => {
    return await request.get({ url: `/base/api-eisc/get?id=` + id })
  },

  // 新增EISC系统接口
  createApiEisc: async (data: ApiEiscVO) => {
    return await request.post({ url: `/base/api-eisc/create`, data })
  },

  // 修改EISC系统接口
  updateApiEisc: async (data: ApiEiscVO) => {
    return await request.put({ url: `/base/api-eisc/update`, data })
  },

  // 删除EISC系统接口
  deleteApiEisc: async (id: number) => {
    return await request.delete({ url: `/base/api-eisc/delete?id=` + id })
  },

  // 导出EISC系统接口 Excel
  exportApiEisc: async (params) => {
    return await request.download({ url: `/base/api-eisc/export-excel`, params })
  },
}